package com.yupi.oj.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yupi.oj.model.dto.question.QuestionPageRequest;
import com.yupi.oj.model.entity.Question;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yupi.oj.model.vo.QuestionVO;
import org.apache.ibatis.annotations.Param;

/**
* @author yanghaifeng
* @description 针对表【question(题目表)】的数据库操作Mapper
* @createDate 2024-04-11 15:36:41
* @Entity com.yupi.oj.model.entity.Question
*/
public interface QuestionMapper extends BaseMapper<Question> {


    /**
     * 分页查询
     *
     * @param page                分页参数
     * @param questionPageRequest 查询参数
     * @return 分页结果
     */
    Page<Question> queryPage(@Param("page") Page<Question> page, @Param("dto") QuestionPageRequest questionPageRequest);
}




